﻿/*----------------------------------------------------------------
// Copyright (C) 2005 麦迪斯顿(北京)医疗科技发展有限公司
// 文件名：DataFieldCollection.cs
// 文件功能描述：DataFieldCollection
// 创建标识：顾伟伟-2011-01-14
----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using Light.Common.Mapping;
using System.Reflection;

namespace Light.Data.DataEntity
{
    /// <summary>
    /// 实体映射的集合
    /// </summary>
    public  class DataFieldCollection
    {
       private string _tableName = string.Empty;
        /// <summary>
        /// 表名
        /// </summary>
       public string TableName
       {
           get
           {
               return _tableName;
           }
           set
           {
               _tableName = value;
           }
       }
       private Dictionary<PropertyInfo, DataFieldAttribute> _fieldsMappings = new Dictionary<PropertyInfo, DataFieldAttribute>();
        /// <summary>
        /// 属性和字段的映射
        /// </summary>
       public Dictionary<PropertyInfo,DataFieldAttribute> FieldMappings
       {
           get
           {
               return _fieldsMappings;
           }
       }
      
      

    }
}
